home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1705 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  2.8 KB  |  73 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 40 && _root.range == true)
  5.       {
  6.          _root.next_dis1 = 2;
  7.          _root.next_txt1 = "Hey, that\'s a great idea.  I\'ll have a girlfriend in no time...  in JAIL!  ARE YOU NUTS?";
  8.       }
  9.       else if(_root.micon._currentframe == 41 && _root.range == true)
  10.       {
  11.          _root.next_dis1 = 2;
  12.          _root.next_txt1 = "I don\'t think I want to make Casper cry.";
  13.       }
  14.       if(_root.micon._currentframe == 1 && _root.range == true)
  15.       {
  16.          _root.next_dis1 = 2;
  17.          _root.next_txt1 = "No! Bad Hewitt, BAD!";
  18.       }
  19.       if(_root.micon._currentframe == 2)
  20.       {
  21.          _root.next_dis1 = 2;
  22.          _root.lock_pick_discovered = 1;
  23.          _root.next_txt1 = "It\'s Casper the Australian Exchange student.  He once picked the lock on Hoggard\'s door, got in, and erased his permanent record.";
  24.       }
  25.       if(_root.micon._currentframe == 4 && _root.range == true && _root.txt_number <= 1)
  26.       {
  27.          if(_root.lock_pick_discovered != 1)
  28.          {
  29.             _root.txt_number = 4;
  30.             _root.next_txt4 = "Hey Casper. I was wondering if you could help me with something.";
  31.             _root.di4 = 570;
  32.             _root.next_dis4 = 2;
  33.             _root.next_txt3 = "Well I could help you, but it depends on what you want.";
  34.             _root.di3 = 571;
  35.             _root.next_dis3 = 17;
  36.             _root.next_txt2 = "Could you help me find a date to the dance?";
  37.             _root.di2 = 572;
  38.             _root.next_dis2 = 2;
  39.             _root.next_txt1 = "Nah can\'t help you there buddy, I don\'t do that sorta thing.";
  40.             _root.di1 = 573;
  41.             _root.next_dis1 = 17;
  42.          }
  43.          else if(_root.talk13 == 0)
  44.          {
  45.             _root.talk13 = 1;
  46.             _root.txt_number = 6;
  47.             _root.next_txt6 = "Hey Casper. I was wondering if you could help me with something.";
  48.             _root.di6 = 570;
  49.             _root.next_dis6 = 2;
  50.             _root.next_txt5 = "Well I could help you, but it depends on what you want.";
  51.             _root.di5 = 571;
  52.             _root.next_dis5 = 17;
  53.             _root.next_txt4 = "Could you teach me how to pick locks?";
  54.             _root.di4 = 574;
  55.             _root.next_dis4 = 2;
  56.             _root.next_txt3 = "Ok. Here, let me show you.";
  57.             _root.di3 = 575;
  58.             _root.next_dis3 = 17;
  59.          }
  60.          else if(_root.talk13 == 1)
  61.          {
  62.             _root.txt_number = 2;
  63.             _root.next_txt2 = "Could you teach me how to pick locks?";
  64.             _root.di2 = 574;
  65.             _root.next_dis2 = 2;
  66.             _root.next_txt1 = "Ok. Here, let me show you.";
  67.             _root.di1 = 575;
  68.             _root.next_dis1 = 17;
  69.          }
  70.       }
  71.    }
  72. }
  73.